/*
* $Id: JournalWin.h 120 2010-07-16 08:16:25Z volok-aleksej@yandex.ru $
*
* Copyright 2008-2009 by Volokitin Alexey
* All rights reserved
*
*/
#ifndef _JOURNAL_WIN_H_
#define _JOURNAL_WIN_H_

#include "../Wnd.h"
#include "JournalToolbar.h"
#include "Components/Journal/JournalInterface.h"

class CJournalWin : public CFrameWnd, public CWndImpl
{
	IJournalView* m_pView;
	IJournalComponent* m_pComponent;
	CJournalToolbar m_toolBar;
protected:
	virtual void PostNcDestroy();
protected:
	virtual BOOL OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult);
	DECLARE_MESSAGE_MAP();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnClose();
	afx_msg void OnHousing();
	afx_msg void OnBeeQueen();
	afx_msg void OnDestroy();
	afx_msg void OnSettings();
public:
	CJournalWin(IJournalComponent* pComponent);
	virtual ~CJournalWin();
};

#endif /*_JOURNAL_WIN_H_*/